<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import = "com.classes.Casemast, com.classes.CaseOutlet, com.classes.Outlet, com.classes.OutletFactory" %>
<%@ page import = "com.mbbmap.util.Constants" %>
<%@ page import = "com.mbbmap.security.dao.*" %>
<%@ include file="/jsp/map/include/user-dao.jsp" %>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<jsp:include page="/jsp/map/include/html-meta.jsp" />
<title>MAYBANK</title>
</head>
<body>

<!-- Header -->
<%@ include file="/jsp/common/_Header.jsp" %>	
<!-- End Header -->

<%@ include file="/jsp/map/_business_details.jsp" %>
<%@ include file="/jsp/map/_match_trace.jsp" %>	

<%
int case_id = Integer.parseInt(request.getAttribute("case_id").toString());
Casemast m_case = (Casemast) request.getAttribute("m_case");
if(m_case.getOutlets().size() > 0){
	for(CaseOutlet a : m_case.getOutlets()){
		Outlet o = a.getOutlet();
		int outlet_id = (int) o.getId();
		
		OutletFactory of = new OutletFactory();
		CaseOutlet c_outlet = of.getCaseOutlet(case_id, outlet_id);
		if(c_outlet == null){
			System.out.println(of.getMessage());
			return;
		}
%>

<%@ include file="/jsp/map/_outlet_detail.jsp" %>	

<%
		if(m_case.getStatus().equals("PUT UP") == false && oSecUserDao.getGroupCode().startsWith("03")){
			// skip checking
		} else {
%>
<%@ include file="/jsp/map/_payment_info.jsp" %>	
<% 
		}
%>

<%@ include file="/jsp/map/_statement_option.jsp" %>
<%@ include file="/jsp/map/_other_info.jsp" %>
<%@ include file="/jsp/map/_outlet_physical_address.jsp" %>
<%@ include file="/jsp/map/_outlet_payment_address.jsp" %>
<%@ include file="/jsp/map/_outlet_correspondence_address.jsp" %>

<%
		if(m_case.getStatus().equals("PUT UP") == false && oSecUserDao.getGroupCode().startsWith("03")){
			// skip checking
		} else {
%>
<%@ include file="/jsp/map/_outlet_mdr_rate.jsp" %>	
<% 
		}
%>

<% 
	}
}
%>
</body>
</html>